<nav aria-label="Page navigation" class="mt-3">
    <ul class="pagination" style="justify-content: end;">
      {% if currentPage == 1 %}
      <li class="page-item">
        <a class="page-link" href="#" aria-label="Previous">
          <span aria-hidden="true">&laquo;</span>
        </a>
      </li>
      {% else %}
      <li class="page-item">
        <a class="page-link" href="{{baseUrl + (currentPage - 1)}}" aria-label="Previous">
          <span aria-hidden="true">&laquo;</span>
        </a>
      </li>
      {% endif %}
  
      {% for i in pagination %}
      <li class="page-item"><a class="page-link" href="{{baseUrl + i}}">{{i}}</a></li>
      {% endfor %}
  
  
      {% if currentPage == pageCount %}
      <li class="page-item">
        <a class="page-link" href="#" aria-label="Previous">
          <span aria-hidden="true">&raquo;</span>
        </a>
      </li>
      {% else %}
      <li class="page-item">
        <a class="page-link" href="{{baseUrl + (currentPage + 1)}}" aria-label="Next">
          <span aria-hidden="true">&raquo;</span>
        </a>
      </li>
      {% endif %}
    </ul>
  </nav>